const countdown = (time) => {
    console.log(time);
    setTimeout(() => time>0&&countdown(time -1), 1000)
}